﻿using Newtonsoft.Json;
using System.Collections.Generic;
using ZZDingTalkSDK.ZZDingTalkRequest.Common;
using ZZDingTalkSDK.ZZDingTalkResponse;
using ZZDingTalkSDK.ZZDingTalkResponse.common;

namespace ZZDingTalkSDK.ZZDingTalkRequest
{
    /// <summary>
    /// 查询组织下人员详情
    /// </summary>
    public class MoziOrganizationPageOrganizationEmployeePositionsRequest : IZZDRequest<ZZDingTalkPageResponseContent<List<MoziOrganizationPageOrganizationEmployeePositionsResponse>>>
    {
        /// <summary>
        /// 租户ID
        /// </summary>
        [JsonProperty("tenantId")]
        public string? TenantId { get; set; }

        /// <summary>
        /// 组织ID
        /// </summary>
        [JsonProperty("organizationCode")]
        public string? OrganizationCode { get; set; }

        /// <summary>
        /// 页码
        /// </summary>
        [JsonProperty("pageNo")]
        public int PageNo { get; set; }

        /// <summary>
        /// 每页数量
        /// </summary>

        [JsonProperty("pageSize")]
        public int PageSize { get; set; } = 50;

        /// <summary>
        /// 是否返回总数
        /// </summary>
        [JsonProperty("returnTotalSize")]
        public bool ReturnTotalSize { get; set; } = true;

        /// <summary>
        /// 员工状态
        /// </summary>
        [JsonProperty("employeeStatus")]
        public string EmployeeStatus { get; set; } = "A";

        public string GetApiName()
        {
            return "/mozi/organization/pageOrganizationEmployeePositions";
        }
    }
}